package com.zhentao.controller;

import com.zhentao.pojo.Menu;
import com.zhentao.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("menu")
public class MenuController {
    @Autowired
    MenuService menuService;
//    菜单任务栏
    @PostMapping("fontuid")
    public List<Menu>fondMenuId(int uid){
        return menuService.fondMenuId(uid);
    }
}
